﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace exam001
{
    internal class exam001数字相反输出
    {
        static void Main(string[] args)
        {
            int n = Convert.ToInt32(Console.ReadLine());
            int ge = n %10;
            int shi = (n / 10) % 10;
            int bai = n /100;
            Console.WriteLine(ge);
            Console.WriteLine(shi);
            Console.WriteLine(bai);
                Console.WriteLine(""+ge +shi + bai);
        }
    }
}
